package com.lsl.command_pattern.example.concretecommand;

import com.lsl.command_pattern.example.command.Command;

/**
 * description:最小化命令类：具体命令类
 *
 * @author: liushengli
 * data: 2022/12/1
 */
public class MinimizeCommand extends Command {
    private WindowHandler windowHandler; //维持对请求接收者的引用

    public MinimizeCommand() {
        windowHandler = new WindowHandler();
    }

    //命令执行方法，将调用请求接收者的业务方法
    public void execute() {
        windowHandler.minimize();
    }
}
